package com.sc.admin.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.admin.model.entity.sys.SysUserRole;

/**
 * 用户角色访问层
 *
 * @author shen chen
 * @since 2022/1/15
 */

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 获取角色绑定的用户数
     *
     * @param roleId 角色ID
     */
    int countUsersForRole(Long roleId);
}
